import request from '@/utils/request'

// 查询仓库list
export function listCustomer(query) {
  return request({
    url: '/reverse/customer/list',
    method: 'post',
    data:  JSON.parse(JSON.stringify(query))
  })
}


// 查询指定仓库
export function getCustomer(customerId) {
  return request({
    url: '/reverse/customer/' + customerId,
    method: 'get'
  })
}

// 新增仓库
export function addCustomer(data) {
  return request({
    url: '/reverse/customer',
    method: 'post',
    data: data
  })
}

// 修改仓库信息
export function updateCustomer(data) {
  return request({
    url: '/reverse/customer/update',
    method: 'post',
    data: data
  })
}

// 删除仓库
export function delCustomer(customerId) {
  return request({
    url: '/reverse/customer/' +customerId,
    method: 'delete'
  })
}